<!-- right block -->
    <div class="content_right">


<?php if (is_home()) { ?>
        
      <div class="shadowblock_out">

        <div class="shadowblock">

         <h2 class="colour_top">Welcome to our Web site!</h2>
<h1><span class="colour">List Your Classified Ads</span></h1>

<p>You can easily customize this message from within ClassiPress. Become a free member and start listing your classified ads within minutes.</p>
          
          <a href="<?php echo get_option('home'); ?>/wp-login.php?action=register" class="mbtn btn_orange">注册加入..</a>


        </div><!-- /shadowblock -->

      </div><!-- /shadowblock_out -->

<?php } ?>



<?php
  if (is_category()) {
  $this_category = get_category($cat);

      if (get_category_children($this_category->cat_ID) != '') {
      ?>
      <div class="shadowblock_out">
        <div class="shadowblock">
          <h2 class="dotted"><?php _e('Sub Categories', 'cp') ?></h2>

          <ul>
            <?php wp_list_categories('hide_empty=0&orderby=id&show_count=1&title_li=&use_desc_for_title=1&child_of='.$this_category->cat_ID); ?>
          </ul>

            <div class="clr"></div>
        </div>
      </div>
<?php
      }
  }
  ?>
      


    <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Main Sidebar', 'cp')) : else : ?>

    <!-- no dynamic sidebar setup -->

    <div class="shadowblock_out">
        <div class="shadowblock">
          <h2 class="dotted"><?php _e('BlogRoll', 'cp') ?></h2>

          <ul>

              <?php wp_list_bookmarks('title_li=&categorize=0'); ?>

          </ul>

            <div class="clr"></div>
        </div>
      </div>

     <div class="shadowblock_out">
        <div class="shadowblock">
          <h2 class="dotted"><?php _e('Meta', 'cp') ?></h2>

          <ul>

              <?php wp_register(); ?>
              <li><?php wp_loginout(); ?></li>
              <li><a href="http://wpclassipress.com/" title="Premium Classified Ads Theme">ClassiPress</a></li>
              <li><a href="http://wordpress.org/" title="Powered by WordPress">WordPress</a></li>
              <?php wp_meta(); ?>

          </ul>

            <div class="clr"></div>
        </div>
      </div>

    <?php endif; ?>


    </div><!-- /content_right -->